/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-04-01
 * Time: 21:19
 */
import java.util.*;
public class Test {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int min = 100, max =  0;
        double sum = 0;
        for(int i  = 0; i < n; i++) {
            int x = sc.nextInt();
            max = Math.max(max,x);
            min = Math.min(min,x);
            sum += x;
        }
        sum /= n;
        System.out.println(max);
        System.out.println(min);
        System.out.printf("%.2f",sum);
    }
}




